package com.bite.lesson1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class Demo_02 {
    public static void main(String[] args) throws IOException {
        int len = 0;
        InputStream inputStream = new FileInputStream("D:/GAO/Test/Demo_01.txt");
        while(true) {
            len = inputStream.read();
            if (len == -1) {
                break;
            }
            System.out.printf("%c\n",len);
        }
        inputStream.close();
    }
}
